import type { RequestHandler } from 'express'

const access: RequestHandler = (req, res, next) => {
    console.log(`[${new Date().toLocaleString()}] ${req.method}: ${req.url}`);
    console.log(`req.query: ${JSON.stringify(req.query)}, request.body: ${JSON.stringify(req.body)}`)
    next()
}


export default access;
